/**
 * @Version 1.0.0
 * @Author DemoHui
 * @Date 2022/09/29
 */

import request from "@/utils/request";

export function buildMenus() {
  return request({
    url: "api/menus/build",
    method: "get",
  });
}

export function getMenus(params) {
  return request({
    url: "api/menus",
    method: "get",
    params,
  });
}

export function addUser(data) {
  return request({
    url: "api/users",
    method: "post",
    data,
  });
}

export function delUser(ids) {
  return request({
    url: "api/users",
    method: "delete",
    data: ids,
  });
}
